﻿using OddUserManager.Data.IRepositories;
using OddUserManager.Model;
using OddUserManager.Service.IServices;
using System;
using System.Collections.Generic;
using System.Text;

namespace OddUserManager.Service.Services
{
    public class RealTimeJCMatchService : IRealTimeJCMatchService
    {
        public IRealTimeJCMatchRepository _repository;
        public RealTimeJCMatchService(IRealTimeJCMatchRepository repository)
        {
            _repository = repository;
        }
        public JCMatch Get(int id)
        {
            return _repository.Get(id);
        }

        public List<string> GetAllIssues()
        {
            return _repository.GetAllIssues();
        }

        public List<MatchOption> GetMatchOptionByIssues(List<string> issues)
        {
            return _repository.GetMatchOptionByIssues(issues);
        }

        public List<MatchOption> GetMatchOptionByTime(DateTime startTime, DateTime endTime)
        {
            return _repository.GetMatchOptionByTime(startTime, endTime);
        }

        public List<JCMatch> GetMatchsByIds(List<int> ids)
        {
            return _repository.GetMatchsByIds(ids);
        }

        public List<JCMatch> GetMatchsByIssue(string issue)
        {
            return _repository.GetMatchsByIssue(issue);
        }

        public List<JCMatch> GetMatchsByIssues(List<string> issues)
        {
            return _repository.GetMatchsByIssues(issues);
        }

        public List<JCMatch> GetNoFinishedMatch()
        {
            return _repository.GetNoFinishedMatch();
        }
    }
}
